<html>
<head>
<script language = "javascript">
var ws = new WebSocket("ws://localhost:8888/websocket");

ws.onopen = function() {
   ws.send("Nicholas");
   ws.send("a");
   ws.send("l");
   ws.send("l");
};

ws.onmessage = function (evt) {
   document.write(evt.data)
};

</script>
</head>

<body>

</body>
</html>